//********************************************************************
// 
//  file:  Program.cs
// 
//  (C) Copyright 2010, Diomede Corporation
//  All rights reserved
// 
//  Use, modification, and distribution is subject to   
//  the New BSD License (See accompanying file license.txt).
// 
//********************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Diomede.SDK.Example.Samples;

namespace Diomede.SDK.Example
{
    class Program
    {
        [STAThread()]
        static void Main(string[] args)
        {
            Console.BufferWidth = 100;
            Console.WindowWidth = 100;
            Console.WindowHeight = 50;
            new Samples.Files.WindowUploadSample().Start();

            //bool exit = false;
            //while (!exit)
            //{
            //    writeMenu();
            //    ConsoleKeyInfo key = Console.ReadKey();
            //    switch (key.Key)
            //    {
            //        case ConsoleKey.NumPad0:
            //        case ConsoleKey.D1:
            //            new Samples.AccountManagementSample().Start();
            //            return;
            //        case ConsoleKey.D2:
            //            //new Samples.FileManagement().Start();
            //            new Samples.Files.WindowUploadSample().Start();
            //            return;
            //        case ConsoleKey.D3:
            //            new Samples.PurchasingManagementSample().Start();
            //            return;
            //        case ConsoleKey.Escape:
            //            exit = true;
            //            break;
            //        case ConsoleKey.D9:
            //            Console.WriteLine("");
            //            long[] a = new long[] { 0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000010, 0x00000020};
            //            Console.WriteLine((a[0] | a[2]) & a[2]);
            //            Console.ReadKey();
            //            break;
            //        default:
            //            break;
            //    }
            //}
            
        }

        static void writeMenu()
        {
            Console.Clear();
            Utils.WriteMessage("----------------------------------------------");
            Utils.WriteMessage(" Select Sample to Run C#");
            Utils.WriteMessage("----------------------------------------------");
            Utils.WriteMessage("(1) AccountManagement Sample");
            Utils.WriteMessage("(2) FileManagement Sample");
            Utils.WriteMessage("(3) PurchasingManagement Sample");
            Utils.WriteMessage("(Esc) To Exit");
            Utils.WriteMessage("");
            Utils.WriteMessage("");
            Utils.WriteMessage("----------------------------------------------");
            Console.Write("Enter Selected #: ");
        }
    }
}
